/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dbo;

/**
 *
 * @author bi
 */
public class Faction {
    private String name;
    private String team;
    private String subname;

    public Faction(String name, String team,String subname) {
        this.name = name;
        this.team = team;
        this.subname = subname;
    }

    public Faction(String subname) {
        this.subname = subname;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @return the team
     */
    public String getTeam() {
        return team;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj.getClass().equals(this.getClass())) {
            if (this.hashCode() == obj.hashCode()) {
                return true;
            }
        }
        return false;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 89 * hash + (this.subname != null ? this.subname.hashCode() : 0);
        return hash;
    }

    /**
     * @return the subname
     */
    public String getSubname() {
        return subname;
    }
}
